/*
 * @Description:
 * @Version: 1.0
 * @Autor: yel
 * @Date: 2022-03-10 11:30:40
 * @LastEditors: zhou
 * @LastEditTime: 2022-06-17 16:48:06
 */
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import Cookies from "js-cookie";
// import directive from "./directive"; //directive

import Element from "element-ui";
import "@/assets/styles/element-variables.scss";

import "@/assets/permission.js";

Vue.config.productionTip = false;

import "@/assets/styles/index.scss"; // global css
import "@/assets/styles/ruoyi.scss"; // ruoyi css

import "./assets/icons/iconfont.css"; // icon
import "./assets/icons/common/font.css";
import "./assets/icons/d_din/font.css";
import visibility from "vue-visibility-change";
Vue.use(visibility);

import { renderHtml } from "@/utils/html.js";
import {
    parseTime,
    newAddDateRange,
    // resetForm,
    // addDateRange,
    // selectDictLabel,
    // selectDictLabels,
    // download,
    // handleTree,
    // handleTree1,
    // dateFormatter,
    // formatDate,
} from "@/utils/ruoyi";

import { fitChartSize } from "@/utils/styleUtil.js";
import styleUtil from "./utils/styleUtil.js";

Vue.prototype.parseTime = parseTime;
Vue.prototype.fitChartSize = fitChartSize;
Vue.prototype.styleUtil = styleUtil;
Vue.prototype.renderHtml = renderHtml;
Vue.prototype.newAddDateRange = newAddDateRange;

Vue.use(Element, {
    size: Cookies.get("size") || "medium", // set element-ui default size
});
new Vue({
    router,
    store,
    render: (h) => h(App),
}).$mount("#app");
